<?
	require_once('includes/conn.php');
$countryId=intval($_GET['country']);
$stateId=intval($_GET['state']);

$sc = "SELECT id,name FROM cities WHERE country_id='$countryId' AND state_id='$stateId'";
		$qc = mysql_query($sc) or die($sc);
		?>
<select style="width:310px;" name="city">
 <option value="0">Select City</option>
  <?php while($rqc = mysql_fetch_array($qc)) { ?>
 <option value='<?=$rqc['id']?>'><?=$rqc['name']?></option>
<?php } ?>
</select>